package cn.org.eshow.service;

import cn.org.eshow.model.User;

public interface PasswordTokenManager {

    /**
     * {@inheritDoc}
     */
    String generateRecoveryToken(User user);

    /**
     * {@inheritDoc}
     */
    boolean isRecoveryTokenValid(User user, String token);

    /**
     *
     * @param user
     * @param token
     */
    void invalidateRecoveryToken(User user, String token);
}